
<H3><center>Daftar kamar yang telah dipesan :</center></h3>
<table width="100%" border="1">
<tr bgcolor="yellow"><th width="5%">No</th><th>Photo</th><th>Keterangan</th><th>Batal Pesan</th><tr>
<?php
require_once 'class/config_database.php';
require_once 'class/order.php';
require_once 'class/kamar.php';
$order_dao 	= new Order_Dao($host,$user,$pass,$dbnm);
$list_order  = $order_dao->get_all($_SESSION["Id_pengguna"]);
$kamar_dao = new Kamar_Dao($host,$user,$pass,$dbnm);
$kamar	   = new Kamar();
$no=1;
foreach($list_order as $daftar_order){
	$ambil = $daftar_order->id_kamar;
	$kamar 	= $kamar_dao->get($ambil);
	echo "<form method=\"POST\" enctype=\"multipart/form-data\">
			<tr><td valign=top>".$no."</td>
			<td valign=top><img class=well src=upload/".$kamar->room_figure." width=200></td>
    		<td valign=top align=left>
			Order Date :".$daftar_order->date_order."<br>
			Id Kamar :".$daftar_order->id_kamar."<br>
			Note :".$daftar_order->note."<br>
			Status :".$daftar_order->answer."<br>
			Note Answer :".$daftar_order->note_answer."			
			</td>
            <td valign=top><input name=\"hd_batal\" type=\"hidden\" value=\"".$daftar_order->id_order."\">
			<input class=\"btn\" name=\"batal_pesan_kamar\" type=\"submit\" value=\"Batal\"></td>
   	</tr></form>"; $no++; 
};
?>
</table>
